:root {
    --primary-colour: #111;
    --white-colour: #f1f1f1;
    --offwhite-colour: #cdcdcd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    font-synthesis: none !important;
}

.scrollbar-track, .scrollbar-track-y {
  opacity: 0 !important;
  pointer-events: none !important;
}

body {
    width: 100vw;
    display: flex;
    flex-direction: column;
    background-color: #111;
}

html, body {
  overflow: hidden;
}

#content-wrapper {
  height: 100vh;
  overflow: auto;
}

#overlay-top 
{
    position: absolute;
    height: 100%;
    width: 100%;
    background: linear-gradient(#0000009a, var(--primary-colour));
    z-index: 1;
}

#section1 {
    position: relative; /* Establish positioning context for the overlay */
    height: 60vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url("../Images/Genworld/Pictures/Pic1.png") center no-repeat #000;
    background-size: cover;
    opacity: 0;
    transform: scale(1.2);
    animation: fadezoom 1s ease forwards;
}

#section1 h1, #section1 h4 {
    color: var(--white-colour);
    z-index: 3;
}

#section1 h4{
    margin-top: -5px;
}

.text-section {
    position: relative; /* Establish positioning context for the overlay */
    height: fit-content;
    margin-bottom: 10vh;
    width: 100vw;
    padding-left: 30vw;
    padding-right: 30vw;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: left;
    background-color: var(--primary-colour);
}

.text-section h3 {
    margin-bottom: 10px;
    color: var(--white-colour);
    text-align: left;
}

.text-section p {
    /*width: 30%;*/
    text-align: left;
    color: var(--offwhite-colour);
    height: fit-content;
}

.primarybutton-white {
    padding: 0.95rem 4rem;
    color: var(--white-colour);
    border: 2px solid var(--white-colour);
    border-radius: 50px;
    background-color: var(transparent);
    z-index: 3;
    transition: 0.2s ease-in;
}

.primarybutton-white:hover {
    background-color: var(--white-colour);
    color: var(--primary-colour);
    transform: scale(1.04);
}

@keyframes fadezoom {
    from {
        opacity: 0;
        transform: scale(1.4);
    }
    
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (width <= 1350px) {

    .text-section {
    padding-left: 20vw;
    padding-right: 20vw;
    }

    #section2 h3 {
        order: 1;
        margin-bottom: 40px;
    }

    #section2 p {
        order: 2;
        text-align: center;
    }

    #section3 h3 {
        margin-bottom: 40px;
    }
}

@media (width <= 1000px) {

    #section1 {
        height: 95vh;
    }

}

@media (width <= 530px) {

    #section1 {
        height: 95vh;
    }

}